package com.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pojo.Admin;
import com.pojo.Menu;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author lvjiazhen
 * @date 2021/7/22  16:05
 */
@Repository
public interface AdminMapper extends BaseMapper<Admin> {
    /**
     * 通过用户id查询菜单列表
     * @param id
     * @return
     */

    List<Menu> getMenusByAdminId(Integer id);
}
